package service;

import java.util.HashMap;

/**
 * @author 余一
 * @date 2021/10/30  11:06
 */
public class ThreadManager {
    private static HashMap<String,ClientConnectServerThread> threadHashMap = new HashMap<>();

    public static void addThread(String userId,ClientConnectServerThread connectServerThread){
        threadHashMap.put(userId,connectServerThread);
    }


    public static ClientConnectServerThread getThread(String userId){
        return threadHashMap.get(userId);
    }
}
